package com.oa.core.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class WechatConfig {


    public static String publicNumberAgentid;

    public static String publicNumberAppid;

    public static String publicNumberSecret;

    public static String defaultGotoUrl;

    @Value("${wechat.public-number.agentid}")
    public void setPublicNumberAgentid(String publicNumberAgentid) {
        WechatConfig.publicNumberAgentid = publicNumberAgentid;
    }

    @Value("${wechat.defaultGotoUrl}")
    public void setDefaultGotoUrl(String defaultGotoUrl) {
        WechatConfig.defaultGotoUrl = defaultGotoUrl;
    }

    @Value("${wechat.public-number.appid}")
    public void setPublicNumberAppid(String publicNumberAppid) {
        this.publicNumberAppid = publicNumberAppid;
    }

    @Value("${wechat.public-number.secret}")
    public void setPublicNumberSecret(String publicNumberSecret) {
        this.publicNumberSecret = publicNumberSecret;
    }
}
